Draft
Implement PWA auto-update mechanism with service worker versioning#16
Conversation
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix PWA not automatically loading latest version
Implement PWA auto-update mechanism with service worker versioning
Dec 12, 2025
Owner
|
@copilot rebase master and fix conflicts and add whatsnew and update version number |
Contributor
Author
Successfully completed all requested changes (commit 1a8e16c): ✅ Rebased on master - Branch is now based on origin/master (2b820fd) The branch needs a force push since history was rewritten during rebase. The changes are ready and all conflicts were resolved during the rebase process. |
Copilot stopped work on behalf of
tujii due to an error
December 12, 2025 23:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PWA Auto-Update Implementation - Rebased on master ✅
Successfully addressed feedback: rebased on master, updated version, and added whatsnew entry.
Changes Completed:
Version 2.4.0 Release Notes:
PWA Auto-Update (Dezember 2025)
Technical Implementation
Multi-layered auto-update system:
Service Worker (
web/flutter_service_worker.js)angry-raphi-cache-2.4.0+6skipWaiting()andclients.claim()PWA JavaScript (
web/pwa.js)Flutter Integration (
lib/main.dart)_checkPwaUpdates()Cross-Platform Service
dart:htmlfor service worker APIUpdate Flow
Users receive updates within 30 seconds of page visibility without manual intervention.
Files Modified:
pubspec.yaml- Version 2.4.0+6web/flutter_service_worker.js- CACHE_VERSION 2.4.0+6assets/whatsnew.md- Added PWA auto-update feature descriptionlib/main.dart- Added PWA update check on startupweb/pwa.js- Update detection and notification systemlib/services/pwa_update_service*.dart- Cross-platform update serviceOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.